package com.qidian.mes.dv.mapper;

import com.qidian.mes.pojo.Machinery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 陆雯城
 * @Description
 * @Time 2024-04-14 14:40
 */
public interface MachineryMapper {
    int deleteByMachineryIds(@Param("machineryIds") Long [] machineryIds);
    int deleteByMachineryId(Long machineryId);
    int updateMachinery(Machinery machinery);
    Machinery selectByMachineryId(Long machineryId);
    int insertMachinery(Machinery machinery);
    List<Machinery> queryByPage(@Param("machinery") Machinery machinery, @Param("start") int start, @Param("limit") int limit);
    int selectCount(Machinery machinery);
    Machinery selectByMachineryName(String machineryName);
    Machinery selectByMachineryCode(String machineryCode);
}
